<template>
  <div>
    <h1>1.生命周期</h1>
    <life v-if="isShow"></life>
    <button @click="isShow = false">销毁组件</button>
    <h1>2. axios使用</h1>
    <use-axios></use-axios>
    <h1>3. $refs的使用</h1>
    <more></more>
    <h1>4. $nextTick的使用场景</h1>
    <tick></tick>
    <hr />
    <h1>5. 组件对象的name属性</h1>
    <com-name-ha-ha></com-name-ha-ha>
  </div>
</template>

<script>
import Life from "./components/Life";
import More from "./components/More.vue";
import Tick from "./components/Tick.vue";
import UseAxios from "./components/UseAxios";
import ComNameHaHa from "./components/Com.vue";
export default {
  components: { Life, UseAxios, More, Tick, ComNameHaHa },
  data() {
    return {
      isShow: true,
    };
  },
};
</script>

<style>
</style>